import request from '@/utils/request'

// 查询活动奖品
export function getActivityPacketReward(data) {
  return request({
    url: `/admin/activate/red/packet/list?current=${data.pageNum}&pageSize=${data.pageSize}`,
    method: 'post'
  })
}
// 取消该活动/admin/activate/red/packet/cancel
export function cancelActivityPacketReward(data) {
  return request({
    url: `/admin/activate/red/packet/cancel?id=${data.id}`,
    method: 'post'
  })
}
// 新增激活红包活动/admin/activate/red/packet/add
export function addActivityPacketReward(data) {
  return request({
    url: '/admin/activate/red/packet/add',
    method: 'post',
    data
  })
}
// 获取该激活活动详情
export function getActivityPacketRewardById(id) {
  return request({
    url: `/admin/activate/red/packet/getById?id=${id}`,
    method: 'post',
  })
}
// 更新/admin/activate/red/packet/update
export function updateActivityPacketRewardById(data) {
  return request({
    url: `/admin/activate/red/packet/update`,
    method: 'post',
    data
  })
}